<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_09) on Sat Dec 29 12:31:14 CET 2012 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>GraphModel (gephi 0.8.2 API)</title>
<meta name="date" content="2012-12-29">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="GraphModel (gephi 0.8.2 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/GraphModel.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/gephi/graph/api/GraphListener.html" title="interface in org.gephi.graph.api"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/gephi/graph/api/GraphSettings.html" title="interface in org.gephi.graph.api"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/gephi/graph/api/GraphModel.html" target="_top">Frames</a></li>
<li><a href="GraphModel.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.gephi.graph.api</div>
<h2 title="Interface GraphModel" class="title">Interface GraphModel</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public interface <span class="strong">GraphModel</span></pre>
<div class="block">Root interface that contains the complete graph structure and build
 <a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api"><code>Graph</code></a> objets on demand.
 <p>
 The graph structure contains several views. <a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api"><code>GraphView</code></a> are sub-graphs with a unique
 identifier, the <b>viewId</b>. The model maintains all views, and especially:
 <ul><li><b>The Main View:</b> The complete graph, with a view id equal to zero.</li>
 <li><b>The Visible View:</b> The graph currently visualized. Can be the main view
 or an other view that expose a particular sub-graph.</li></ul>
 Different type of graph can be queried: <b>directed</b>,
 <b>undirected</b>, <b>mixed</b> and <b>hierarchical</b>. All types can be queried
 at any time, regardless how the structure is. Indeed even if only directed edges
 were appened to the graph, an <b>undirected</b> graph can be obtained.
 <p>
 It is preferable to use the main graph for performing updates (add, remove, ...).
 <p>
 <h3>Append data to an empty model</h3>
 The following code shows how to add two nodes an an edge to graph.
 <pre>
 Graph graph = model.getGraph();
 Node n1 = model.factory().newNode();
 Node n2 = model.factory().newNode();
 Edge e1 = model.factory().newEdge(n1, n2);
 graph.addNode(n1);
 graph.addNode(n2);
 graph.addEdge(e1);
 </pre>
 <h3>Set Visible view</h3>
 The following code shows how to set the visible view. This is useful if you
 need to visualize a sub-graph.
 <pre>
 GraphView newView = model.newView();     //Duplicate main view
 Graph subGraph = model.getGraph(newView);
 //Filter subgraph by removing nodes and edges
 model.setVisibleView(newView);       //Set the view as current visible view
 </pre>
 <b>Note:</b> Pay attention to destroy views when they are not used anymore.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Mathieu Bastian</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/gephi/graph/api/GraphController.html" title="interface in org.gephi.graph.api"><code>GraphController</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#addGraphListener(org.gephi.graph.api.GraphListener)">addGraphListener</a></strong>(<a href="../../../../org/gephi/graph/api/GraphListener.html" title="interface in org.gephi.graph.api">GraphListener</a>&nbsp;graphListener)</code>
<div class="block">Add <code>graphListener</code> as a listener to this graph, if it is not already.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#clear()">clear</a></strong>()</code>
<div class="block">Clears the model by deleting all views and reseting <code>main</code>
 view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/GraphModel.html" title="interface in org.gephi.graph.api">GraphModel</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#copy()">copy</a></strong>()</code>
<div class="block">Returns a complete copy of this model, including all views but not listeners.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#copyView(org.gephi.graph.api.GraphView)">copyView</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Copy <code>view</code> to a new graph view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#destroyView(org.gephi.graph.api.GraphView)">destroyView</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Destroy <code>view</code>, if exists.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/GraphFactory.html" title="interface in org.gephi.graph.api">GraphFactory</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#factory()">factory</a></strong>()</code>
<div class="block">Returns the factory that creates nodes and edges for this model.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/DirectedGraph.html" title="interface in org.gephi.graph.api">DirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getDirectedGraph()">getDirectedGraph</a></strong>()</code>
<div class="block">Build a <code>DirectedGraph</code> to access the <b>main</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/DirectedGraph.html" title="interface in org.gephi.graph.api">DirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getDirectedGraph(org.gephi.graph.api.GraphView)">getDirectedGraph</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Build a <code>DirectedGraph</code> to access <code>view</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/DirectedGraph.html" title="interface in org.gephi.graph.api">DirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getDirectedGraphVisible()">getDirectedGraphVisible</a></strong>()</code>
<div class="block">Build a <code>DirectedGraph</code> to access the <b>visible</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getGraph()">getGraph</a></strong>()</code>
<div class="block">Build a <code>Graph</code> to access the <b>main</b> view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getGraph(org.gephi.graph.api.GraphView)">getGraph</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Build a <code>Graph</code> to access <code>view/code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getGraphVisible()">getGraphVisible</a></strong>()</code>
<div class="block">Build a <code>Graph</code> to access the <b>visible</b> view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalDirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalDirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalDirectedGraph()">getHierarchicalDirectedGraph</a></strong>()</code>
<div class="block">Build a <code>HierarchicalDirectedGraph</code> to access the <b>main</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalDirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalDirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalDirectedGraph(org.gephi.graph.api.GraphView)">getHierarchicalDirectedGraph</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Build a <code>HierarchicalDirectedGraph</code> to access <code>view</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalDirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalDirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalDirectedGraphVisible()">getHierarchicalDirectedGraphVisible</a></strong>()</code>
<div class="block">Build a <code>HierarchicalDirectedGraph</code> to access the <b>visible</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalGraph.html" title="interface in org.gephi.graph.api">HierarchicalGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalGraph()">getHierarchicalGraph</a></strong>()</code>
<div class="block">Build a <code>HierarchicalGraph</code> to access the <b>main</b> view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalGraph.html" title="interface in org.gephi.graph.api">HierarchicalGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalGraph(org.gephi.graph.api.GraphView)">getHierarchicalGraph</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Build a <code>HierarchicalGraph</code> to access <code>view</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalGraph.html" title="interface in org.gephi.graph.api">HierarchicalGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalGraphVisible()">getHierarchicalGraphVisible</a></strong>()</code>
<div class="block">Build a <code>HierarchicalGraph</code> to access the <b>visible</b> view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalMixedGraph.html" title="interface in org.gephi.graph.api">HierarchicalMixedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalMixedGraph()">getHierarchicalMixedGraph</a></strong>()</code>
<div class="block">Build a <code>HierarchicalMixedGraph</code> to access the <b>main</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalMixedGraph.html" title="interface in org.gephi.graph.api">HierarchicalMixedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalMixedGraph(org.gephi.graph.api.GraphView)">getHierarchicalMixedGraph</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Build a <code>HierarchicalMixedGraph</code> to access <code>view</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalMixedGraph.html" title="interface in org.gephi.graph.api">HierarchicalMixedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalMixedGraphVisible()">getHierarchicalMixedGraphVisible</a></strong>()</code>
<div class="block">Build a <code>HierarchicalMixedGraph</code> to access the <b>visible</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalUndirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalUndirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalUndirectedGraph()">getHierarchicalUndirectedGraph</a></strong>()</code>
<div class="block">Build a <code>HierarchicalUndirectedGraph</code> to access the <b>main</b> view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalUndirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalUndirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalUndirectedGraph(org.gephi.graph.api.GraphView)">getHierarchicalUndirectedGraph</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Build a <code>HierarchicalUndirectedGraph</code> to access <code>view</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/HierarchicalUndirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalUndirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getHierarchicalUndirectedGraphVisible()">getHierarchicalUndirectedGraphVisible</a></strong>()</code>
<div class="block">Build a <code>HierarchicalUndirectedGraph</code> to access the <b>visible</b> view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/MixedGraph.html" title="interface in org.gephi.graph.api">MixedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getMixedGraph()">getMixedGraph</a></strong>()</code>
<div class="block">Build a <code>MixedGraph</code> to access the <b>main</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/MixedGraph.html" title="interface in org.gephi.graph.api">MixedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getMixedGraph(org.gephi.graph.api.GraphView)">getMixedGraph</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Build a <code>MixedGraph</code> to access <code>view</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/MixedGraph.html" title="interface in org.gephi.graph.api">MixedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getMixedGraphVisible()">getMixedGraphVisible</a></strong>()</code>
<div class="block">Build a <code>MixedGraph</code> to access the <b>visible</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/UndirectedGraph.html" title="interface in org.gephi.graph.api">UndirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getUndirectedGraph()">getUndirectedGraph</a></strong>()</code>
<div class="block">Build a <code>UndirectedGraph</code> to access the <b>main</b> view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/UndirectedGraph.html" title="interface in org.gephi.graph.api">UndirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getUndirectedGraph(org.gephi.graph.api.GraphView)">getUndirectedGraph</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Build a <code>UndirectedGraph</code> to access <code>view</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/UndirectedGraph.html" title="interface in org.gephi.graph.api">UndirectedGraph</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getUndirectedGraphVisible()">getUndirectedGraphVisible</a></strong>()</code>
<div class="block">Build a <code>UndirectedGraph</code> to access the <b>visible</b> view.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getVisibleView()">getVisibleView</a></strong>()</code>
<div class="block">Returns the current viisble view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/gephi/project/api/Workspace.html" title="interface in org.gephi.project.api">Workspace</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#getWorkspace()">getWorkspace</a></strong>()</code>
<div class="block">Returns the workspace this graph model belongs to.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#isDirected()">isDirected</a></strong>()</code>
<div class="block">Returns <code>true</code> if the graph is <b>directed</b> by default.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#isHierarchical()">isHierarchical</a></strong>()</code>
<div class="block">Returns <code>true</code> if the graph is <b>hierarchical</b>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#isMixed()">isMixed</a></strong>()</code>
<div class="block">Returns <code>true</code> if the graph is <b>mixed</b> by default.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#isUndirected()">isUndirected</a></strong>()</code>
<div class="block">Returns <code>true</code> if the graph is <b>undirected</b> by default.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#newView()">newView</a></strong>()</code>
<div class="block">Create a new view by duplicating <b>main</b> view.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#pushFrom(org.gephi.graph.api.Graph)">pushFrom</a></strong>(<a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a>&nbsp;graph)</code>
<div class="block">Copy the graph structure from <code>graph</code> to this model.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#pushNodes(org.gephi.graph.api.Graph, org.gephi.graph.api.Node[])">pushNodes</a></strong>(<a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a>&nbsp;graph,
         <a href="../../../../org/gephi/graph/api/Node.html" title="interface in org.gephi.graph.api">Node</a>[]&nbsp;nodes)</code>
<div class="block">Copy the nodes and edges betweeen these nodes from the <code>graph</code>
 to this model.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#removeGraphListener(org.gephi.graph.api.GraphListener)">removeGraphListener</a></strong>(<a href="../../../../org/gephi/graph/api/GraphListener.html" title="interface in org.gephi.graph.api">GraphListener</a>&nbsp;graphListener)</code>
<div class="block">Remove <code>graphListener</code> as a listener to this graph.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/gephi/graph/api/GraphSettings.html" title="interface in org.gephi.graph.api">GraphSettings</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#settings()">settings</a></strong>()</code>
<div class="block">Returns the model settings.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/gephi/graph/api/GraphModel.html#setVisibleView(org.gephi.graph.api.GraphView)">setVisibleView</a></strong>(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</code>
<div class="block">Sets the current visible view and nofity listeners the visible view changed.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="factory()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>factory</h4>
<pre><a href="../../../../org/gephi/graph/api/GraphFactory.html" title="interface in org.gephi.graph.api">GraphFactory</a>&nbsp;factory()</pre>
<div class="block">Returns the factory that creates nodes and edges for this model.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the graph model factory</dd></dl>
</li>
</ul>
<a name="settings()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>settings</h4>
<pre><a href="../../../../org/gephi/graph/api/GraphSettings.html" title="interface in org.gephi.graph.api">GraphSettings</a>&nbsp;settings()</pre>
<div class="block">Returns the model settings.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the graph model settings</dd></dl>
</li>
</ul>
<a name="newView()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newView</h4>
<pre><a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;newView()</pre>
<div class="block">Create a new view by duplicating <b>main</b> view. The view contains all
 nodes and edges in the structure.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a new graph view, obtained from duplicating main view</dd></dl>
</li>
</ul>
<a name="copyView(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyView</h4>
<pre><a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;copyView(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Copy <code>view</code> to a new graph view. The new view contains all
 nodes and edges present in <code>view</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a new graph view, obtained from duplicating <code>view</code></dd></dl>
</li>
</ul>
<a name="destroyView(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>destroyView</h4>
<pre>void&nbsp;destroyView(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Destroy <code>view</code>, if exists. Always destroy views that are not
 needed anymore to avoid memory overhead.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>view</code> - the view that is to be destroyed</dd></dl>
</li>
</ul>
<a name="setVisibleView(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVisibleView</h4>
<pre>void&nbsp;setVisibleView(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Sets the current visible view and nofity listeners the visible view changed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>view</code> - the view that is to be set as the visible view</dd></dl>
</li>
</ul>
<a name="getVisibleView()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVisibleView</h4>
<pre><a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;getVisibleView()</pre>
<div class="block">Returns the current viisble view. By default, returns the <b>main</b>
 view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the current visible view</dd></dl>
</li>
</ul>
<a name="getGraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a>&nbsp;getGraph()</pre>
<div class="block">Build a <code>Graph</code> to access the <b>main</b> view. If no undirected
 edges have been added, returns a <code>DirectedGraph</code>. If the graph
 only contains undirected edges, returns a <code>UndirectedGraph</code>.
 If both directed and undirected edges exists, returns a <code>MixedGraph</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a graph object, directed by default</dd></dl>
</li>
</ul>
<a name="getDirectedGraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDirectedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/DirectedGraph.html" title="interface in org.gephi.graph.api">DirectedGraph</a>&nbsp;getDirectedGraph()</pre>
<div class="block">Build a <code>DirectedGraph</code> to access the <b>main</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a directed graph object</dd></dl>
</li>
</ul>
<a name="getUndirectedGraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUndirectedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/UndirectedGraph.html" title="interface in org.gephi.graph.api">UndirectedGraph</a>&nbsp;getUndirectedGraph()</pre>
<div class="block">Build a <code>UndirectedGraph</code> to access the <b>main</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an undirected graph object</dd></dl>
</li>
</ul>
<a name="getMixedGraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMixedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/MixedGraph.html" title="interface in org.gephi.graph.api">MixedGraph</a>&nbsp;getMixedGraph()</pre>
<div class="block">Build a <code>MixedGraph</code> to access the <b>main</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a mixed graph object</dd></dl>
</li>
</ul>
<a name="getHierarchicalGraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalGraph.html" title="interface in org.gephi.graph.api">HierarchicalGraph</a>&nbsp;getHierarchicalGraph()</pre>
<div class="block">Build a <code>HierarchicalGraph</code> to access the <b>main</b> view.
 If no undirected edges have been added, returns a
 <code>HierarchicalDirectedGraph</code>. If the graph only contains undirected
 edges, returns a <code>HierarchicalUndirectedGraph</code>. If both directed
 and undirected edges exists, returns a <code>HierarchicalMixedGraph</code>.
 <p>
 Hierarchical graphs are normal graphs with more features to handle graphs
 within graphs.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical graph object, directed by default</dd></dl>
</li>
</ul>
<a name="getHierarchicalDirectedGraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalDirectedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalDirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalDirectedGraph</a>&nbsp;getHierarchicalDirectedGraph()</pre>
<div class="block">Build a <code>HierarchicalDirectedGraph</code> to access the <b>main</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical directed graph object</dd></dl>
</li>
</ul>
<a name="getHierarchicalUndirectedGraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalUndirectedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalUndirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalUndirectedGraph</a>&nbsp;getHierarchicalUndirectedGraph()</pre>
<div class="block">Build a <code>HierarchicalUndirectedGraph</code> to access the <b>main</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical undirected graph object</dd></dl>
</li>
</ul>
<a name="getHierarchicalMixedGraph()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalMixedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalMixedGraph.html" title="interface in org.gephi.graph.api">HierarchicalMixedGraph</a>&nbsp;getHierarchicalMixedGraph()</pre>
<div class="block">Build a <code>HierarchicalMixedGraph</code> to access the <b>main</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical mixed graph object</dd></dl>
</li>
</ul>
<a name="getGraphVisible()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraphVisible</h4>
<pre><a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a>&nbsp;getGraphVisible()</pre>
<div class="block">Build a <code>Graph</code> to access the <b>visible</b> view. If no undirected
 edges have been added, returns a <code>DirectedGraph</code>. If the graph
 only contains undirected edges, returns a <code>UndirectedGraph</code>.
 If both directed and undirected edges exists, returns a <code>MixedGraph</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a graph object, directed by default</dd></dl>
</li>
</ul>
<a name="getDirectedGraphVisible()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDirectedGraphVisible</h4>
<pre><a href="../../../../org/gephi/graph/api/DirectedGraph.html" title="interface in org.gephi.graph.api">DirectedGraph</a>&nbsp;getDirectedGraphVisible()</pre>
<div class="block">Build a <code>DirectedGraph</code> to access the <b>visible</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a directed graph object</dd></dl>
</li>
</ul>
<a name="getUndirectedGraphVisible()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUndirectedGraphVisible</h4>
<pre><a href="../../../../org/gephi/graph/api/UndirectedGraph.html" title="interface in org.gephi.graph.api">UndirectedGraph</a>&nbsp;getUndirectedGraphVisible()</pre>
<div class="block">Build a <code>UndirectedGraph</code> to access the <b>visible</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an undirected graph object</dd></dl>
</li>
</ul>
<a name="getMixedGraphVisible()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMixedGraphVisible</h4>
<pre><a href="../../../../org/gephi/graph/api/MixedGraph.html" title="interface in org.gephi.graph.api">MixedGraph</a>&nbsp;getMixedGraphVisible()</pre>
<div class="block">Build a <code>MixedGraph</code> to access the <b>visible</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a mixed graph object</dd></dl>
</li>
</ul>
<a name="getHierarchicalGraphVisible()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalGraphVisible</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalGraph.html" title="interface in org.gephi.graph.api">HierarchicalGraph</a>&nbsp;getHierarchicalGraphVisible()</pre>
<div class="block">Build a <code>HierarchicalGraph</code> to access the <b>visible</b> view.
 If no undirected edges have been added, returns a
 <code>HierarchicalDirectedGraph</code>. If the graph only contains undirected
 edges, returns a <code>HierarchicalUndirectedGraph</code>. If both directed
 and undirected edges exists, returns a <code>HierarchicalMixedGraph</code>.
 <p>
 Hierarchical graphs are normal graphs with more features to handle graphs
 within graphs.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical graph object, directed by default</dd></dl>
</li>
</ul>
<a name="getHierarchicalDirectedGraphVisible()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalDirectedGraphVisible</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalDirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalDirectedGraph</a>&nbsp;getHierarchicalDirectedGraphVisible()</pre>
<div class="block">Build a <code>HierarchicalDirectedGraph</code> to access the <b>visible</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical directed graph object</dd></dl>
</li>
</ul>
<a name="getHierarchicalUndirectedGraphVisible()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalUndirectedGraphVisible</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalUndirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalUndirectedGraph</a>&nbsp;getHierarchicalUndirectedGraphVisible()</pre>
<div class="block">Build a <code>HierarchicalUndirectedGraph</code> to access the <b>visible</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical undirected graph object</dd></dl>
</li>
</ul>
<a name="getHierarchicalMixedGraphVisible()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalMixedGraphVisible</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalMixedGraph.html" title="interface in org.gephi.graph.api">HierarchicalMixedGraph</a>&nbsp;getHierarchicalMixedGraphVisible()</pre>
<div class="block">Build a <code>HierarchicalMixedGraph</code> to access the <b>visible</b> view.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical mixed graph object</dd></dl>
</li>
</ul>
<a name="getGraph(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a>&nbsp;getGraph(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Build a <code>Graph</code> to access <code>view/code>. If no undirected
 edges have been added, returns a <code>DirectedGraph</code>. If the graph
 only contains undirected edges, returns a <code>UndirectedGraph</code>.
 If both directed and undirected edges exists, returns a <code>MixedGraph</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a graph object on <code>view</code>, directed by default</dd></dl>
</li>
</ul>
<a name="getDirectedGraph(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDirectedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/DirectedGraph.html" title="interface in org.gephi.graph.api">DirectedGraph</a>&nbsp;getDirectedGraph(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Build a <code>DirectedGraph</code> to access <code>view</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a directed graph object on <code>view</code></dd></dl>
</li>
</ul>
<a name="getUndirectedGraph(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUndirectedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/UndirectedGraph.html" title="interface in org.gephi.graph.api">UndirectedGraph</a>&nbsp;getUndirectedGraph(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Build a <code>UndirectedGraph</code> to access <code>view</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an undirected graph object on <code>view</code></dd></dl>
</li>
</ul>
<a name="getMixedGraph(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMixedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/MixedGraph.html" title="interface in org.gephi.graph.api">MixedGraph</a>&nbsp;getMixedGraph(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Build a <code>MixedGraph</code> to access <code>view</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a mixed graph object on <code>view</code></dd></dl>
</li>
</ul>
<a name="getHierarchicalGraph(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalGraph.html" title="interface in org.gephi.graph.api">HierarchicalGraph</a>&nbsp;getHierarchicalGraph(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Build a <code>HierarchicalGraph</code> to access <code>view</code>.
 If no undirected edges have been added, returns a
 <code>HierarchicalDirectedGraph</code>. If the graph only contains undirected
 edges, returns a <code>HierarchicalUndirectedGraph</code>. If both directed
 and undirected edges exists, returns a <code>HierarchicalMixedGraph</code>.
 <p>
 Hierarchical graphs are normal graphs with more features to handle graphs
 within graphs.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical graph object on <code>view</code>, directed by default</dd></dl>
</li>
</ul>
<a name="getHierarchicalDirectedGraph(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalDirectedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalDirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalDirectedGraph</a>&nbsp;getHierarchicalDirectedGraph(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Build a <code>HierarchicalDirectedGraph</code> to access <code>view</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical directed graph object on <code>view</code></dd></dl>
</li>
</ul>
<a name="getHierarchicalUndirectedGraph(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalUndirectedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalUndirectedGraph.html" title="interface in org.gephi.graph.api">HierarchicalUndirectedGraph</a>&nbsp;getHierarchicalUndirectedGraph(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Build a <code>HierarchicalUndirectedGraph</code> to access <code>view</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical undirected graph object on <code>view</code></dd></dl>
</li>
</ul>
<a name="getHierarchicalMixedGraph(org.gephi.graph.api.GraphView)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHierarchicalMixedGraph</h4>
<pre><a href="../../../../org/gephi/graph/api/HierarchicalMixedGraph.html" title="interface in org.gephi.graph.api">HierarchicalMixedGraph</a>&nbsp;getHierarchicalMixedGraph(<a href="../../../../org/gephi/graph/api/GraphView.html" title="interface in org.gephi.graph.api">GraphView</a>&nbsp;view)</pre>
<div class="block">Build a <code>HierarchicalMixedGraph</code> to access <code>view</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a hierarchical mixed graph object on <code>view</code></dd></dl>
</li>
</ul>
<a name="pushFrom(org.gephi.graph.api.Graph)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pushFrom</h4>
<pre>void&nbsp;pushFrom(<a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a>&nbsp;graph)</pre>
<div class="block">Copy the graph structure from <code>graph</code> to this model. The
 given <code>graph</code>must come from a different <code>GraphModel</code>,
 e.g. a different workspace.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>graph</code> - the graph that is to be copied in this model</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>graph</code> belongs to this
 graph model</dd></dl>
</li>
</ul>
<a name="pushNodes(org.gephi.graph.api.Graph, org.gephi.graph.api.Node[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pushNodes</h4>
<pre>void&nbsp;pushNodes(<a href="../../../../org/gephi/graph/api/Graph.html" title="interface in org.gephi.graph.api">Graph</a>&nbsp;graph,
             <a href="../../../../org/gephi/graph/api/Node.html" title="interface in org.gephi.graph.api">Node</a>[]&nbsp;nodes)</pre>
<div class="block">Copy the nodes and edges betweeen these nodes from the <code>graph</code>
 to this model. The given <code>graph</code>must come from a different
 <code>GraphModel</code>, e.g. a different workspace.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>graph</code> - the graph that is to be copied in this model</dd><dd><code>nodes</code> - the nodes to copy</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>graph</code> belongs to this
 graph model</dd></dl>
</li>
</ul>
<a name="copy()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre><a href="../../../../org/gephi/graph/api/GraphModel.html" title="interface in org.gephi.graph.api">GraphModel</a>&nbsp;copy()</pre>
<div class="block">Returns a complete copy of this model, including all views but not listeners.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a copy of this graph model</dd></dl>
</li>
</ul>
<a name="clear()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clear</h4>
<pre>void&nbsp;clear()</pre>
<div class="block">Clears the model by deleting all views and reseting <code>main</code>
 view. Calling this method immediately makes all <code>Graph</code> on
 other views than <b>main</b> obsolete.</div>
</li>
</ul>
<a name="addGraphListener(org.gephi.graph.api.GraphListener)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addGraphListener</h4>
<pre>void&nbsp;addGraphListener(<a href="../../../../org/gephi/graph/api/GraphListener.html" title="interface in org.gephi.graph.api">GraphListener</a>&nbsp;graphListener)</pre>
<div class="block">Add <code>graphListener</code> as a listener to this graph, if it is not already.
 To pass a <code>WeakReference</code>, use Netbeans <code>WeakListeners</code> utility class.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>graphListener</code> - the listener to add</dd></dl>
</li>
</ul>
<a name="removeGraphListener(org.gephi.graph.api.GraphListener)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeGraphListener</h4>
<pre>void&nbsp;removeGraphListener(<a href="../../../../org/gephi/graph/api/GraphListener.html" title="interface in org.gephi.graph.api">GraphListener</a>&nbsp;graphListener)</pre>
<div class="block">Remove <code>graphListener</code> as a listener to this graph.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>graphListener</code> - the listener to remove</dd></dl>
</li>
</ul>
<a name="isDirected()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDirected</h4>
<pre>boolean&nbsp;isDirected()</pre>
<div class="block">Returns <code>true</code> if the graph is <b>directed</b> by default. This value is an
 indicator of the current state and it means that so far all edges are directed in the graph.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the graph is only directed or <code>false</code> otherwise</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/gephi/graph/api/DirectedGraph.html" title="interface in org.gephi.graph.api"><code>DirectedGraph</code></a></dd></dl>
</li>
</ul>
<a name="isUndirected()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUndirected</h4>
<pre>boolean&nbsp;isUndirected()</pre>
<div class="block">Returns <code>true</code> if the graph is <b>undirected</b> by default. This value is an
 indicator of the current state and it means that so far all edges are undirected in the graph.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the graph is only undirected or <code>false</code> otherwise</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/gephi/graph/api/UndirectedGraph.html" title="interface in org.gephi.graph.api"><code>UndirectedGraph</code></a></dd></dl>
</li>
</ul>
<a name="isMixed()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isMixed</h4>
<pre>boolean&nbsp;isMixed()</pre>
<div class="block">Returns <code>true</code> if the graph is <b>mixed</b> by default. This value is an
 indicator of the current state and it means that directed and undirected edges has been
 added to the graph. When it returns <code>true</code>, <code>isDirected()</code> and
 <code>isUndirected()</code> methods always returns <code>false</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the graph is mixed or <code>false</code> otherwise</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/gephi/graph/api/MixedGraph.html" title="interface in org.gephi.graph.api"><code>MixedGraph</code></a></dd></dl>
</li>
</ul>
<a name="isHierarchical()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isHierarchical</h4>
<pre>boolean&nbsp;isHierarchical()</pre>
<div class="block">Returns <code>true</code> if the graph is <b>hierarchical</b>. This indicates the presence
 of a hierarchy, in other words the height of the tree is greater than 0.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the graph is clustered or <code>false</code> otherwise</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/gephi/graph/api/HierarchicalGraph.html" title="interface in org.gephi.graph.api"><code>HierarchicalGraph</code></a></dd></dl>
</li>
</ul>
<a name="getWorkspace()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getWorkspace</h4>
<pre><a href="../../../../org/gephi/project/api/Workspace.html" title="interface in org.gephi.project.api">Workspace</a>&nbsp;getWorkspace()</pre>
<div class="block">Returns the workspace this graph model belongs to.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the workspace that owns this graph model</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/GraphModel.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/gephi/graph/api/GraphListener.html" title="interface in org.gephi.graph.api"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/gephi/graph/api/GraphSettings.html" title="interface in org.gephi.graph.api"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/gephi/graph/api/GraphModel.html" target="_top">Frames</a></li>
<li><a href="GraphModel.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2007-2012 <a href="http://consortium.gephi.org">Gephi Consortium</a>. All Rights Reserved.</small></p>
</body>
</html>
